//
//  PMAPI.h 
//  Text_ problem
//
//  Created by jiboxue on 13-1-23.
//  Copyright (c) 2013年 jiboxue. All rights reserved.
//

#import <Foundation/Foundation.h>

#define pm_api @"http://appstore.tiandienergy.com:8181/td_zerodesign/index.php/api"

//#define pm_api @"http://192.168.1.200/td_zerodesign/index.php/api"


@class ASIHTTPRequest;
@class ASIFormDataRequest;

@interface PMAPI : NSObject

+(ASIHTTPRequest *)requestLoginUsername:(NSString *)username andPassword:(NSString *)password;
+(ASIFormDataRequest *)requestModifyName:(NSString *)ModifyName andUsername:(NSString *)username andPassword:(NSString *)password;
+(ASIFormDataRequest *)requestHeadImage:(NSString *)headimage andUsername:(NSString *)username andPassword:(NSString *)password;
+(ASIFormDataRequest *)requestChangeNewPassword:(NSString *)NewPassword andOldPassword:(NSString *)OldPaddword andUserID:(NSString *)UserID;
+(ASIHTTPRequest *)requestlatestUsernsme:(NSString *)username andPassword:(NSString *)password;

+ (ASIFormDataRequest *)requestUsername:(NSString *)username
                            andPassword:(NSString *)password
                            andQuestion:(NSDictionary *)question1
                            andQuestion:(NSDictionary *)question2
                            andAnswer_1:(NSString *)answer_1
                            andAnswer_2:(NSString *)answer_2;

+ (ASIFormDataRequest *)requestUsername:(NSString *)username
                            andPassword:(NSString *)password
                            andQuestion:(NSDictionary *)question1
                            andQuestion:(NSDictionary *)question2;

+ (ASIHTTPRequest *)registerNotification:(NSString *)deviceToken
                             andUsername:(NSString *)username
                             andPassword:(NSString *)password;

@end
